package com.jt.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author dc
 */
@EqualsAndHashCode(callSuper = true)
@TableName("tb_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
public class Order extends BasePojo{

    private static final long serialVersionUID = 7271265533260538110L;
    /**入库操作忽略该字段*/
    @TableField(exist=false)
	private OrderShipping orderShipping;

    /**封装订单商品信息  一对多入库操作忽略该字段*/
	@TableField(exist=false)
	private List<OrderItem> orderItems;

	/**订单号:登录用户id+当前时间戳*/
	@TableId
    private String orderId;
    private String payment;
    private Integer paymentType;
    private String postFee;
    /**状态: 1.未付款 2.已付款 3.未发货 4.已发货*/
    private Integer status;
    private Date paymentTime;
    private Date consignTime;
    private Date endTime;
    private Date closeTime;
    private String shippingName;
    private String shippingCode;
    private Long userId;
    private String buyerMessage;
    private String buyerNick;
    private Integer buyerRate;

}